<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<title>广东国防教育学会</title>
		<meta name="viewport" content="initial-scale=1, maximum-scale=1">
		<meta name="apple-mobile-web-app-capable" content="yes">
		<meta name="apple-mobile-web-app-status-bar-style" content="black">
		<link rel="stylesheet" href="http://g.alicdn.com/msui/sm/0.6.2/css/sm.min.css" />
		<link rel="stylesheet" href="http://idangero.us/swiper/dist/css/swiper.min.css" />
		<link rel="stylesheet" href="/Public/Home/activity/css/style.css" />
	</head>
	<body>

	<nav class="bar bar-tab">
			<a class="tab-item open-indicator <?php if($active == 'home'): ?>active<?php endif; ?>"  href="/">
				<span class="icon icon-home"></span>
				<span class="tab-label">首页</span>
			</a>
			<a class="tab-item open-indicator" href="<?php echo U('Apply/apply');?>">
				<span class="icon iconfont icon-category"></span>
				<span class="tab-label">专家预约</span>
			</a>
			<a class="tab-item open-indicator" <?php if($active == 'user_company'): ?>active<?php endif; ?>" href="<?php echo U('UserCompany/index');?>">
				<span class="icon iconfont icon-huiyuan1"></span>
				<span class="tab-label">会员单位</span>
			</a>
			<a class="tab-item open-indicator <?php if($active == 'user'): ?>active<?php endif; ?>" href="<?php echo U('Users/index');?>">
				<span class="icon iconfont icon-account"></span>
				<span class="tab-label">我的</span>
			</a>
		</nav>	
		<div class="bar bar-nav">
			<h1 class="title">发布预约</h1>
			<i class="icon icon-left" onclick="window.history.go(-1);"></i>
		</div>

		<div class="content">
			
			<div class="row activity_list publish_list">
				<div class="col-100">
					<div class="list-block">
                                            <form id="submitForm" class="sui-form form-horizontal" onsubmit="return false;">
						<ul class="input-daterange">
							<input type="hidden" name='id' value="<?php echo ($value['id']); ?>">
							<li class="item-content">
								<div class="item-media"><i class="iconfont icon-phone"></i></div>
								<div class="item-inner">
									<div class="item-input">
                                                                            <input type="text" name='mobile' placeholder="联系方式" value="<?php echo ($value['mobile']); ?>">
									</div>
								</div>
							</li>
							<li class="item-content yuyue_checkbox">
                                                                <label><input type="checkbox" <?php if(in_array(1, $value['select_time'])): ?>checked="checked"<?php endif; ?> name="select_time[]" value='1'>星期一</label>
								<label><input type="checkbox" <?php if(in_array(2, $value['select_time'])): ?>checked="checked"<?php endif; ?> name="select_time[]" value='2'>星期二</label>
								<label><input type="checkbox" <?php if(in_array(3, $value['select_time'])): ?>checked="checked"<?php endif; ?> name="select_time[]" value='3'>星期三</label>
								<label><input type="checkbox" <?php if(in_array(4, $value['select_time'])): ?>checked="checked"<?php endif; ?> name="select_time[]" value='4'>星期四</label>
								<label><input type="checkbox" <?php if(in_array(5, $value['select_time'])): ?>checked="checked"<?php endif; ?> name="select_time[]" value='5'>星期五</label>
								<label><input type="checkbox" <?php if(in_array(6, $value['select_time'])): ?>checked="checked"<?php endif; ?> name="select_time[]" value='6'>星期六</label>
								<label><input type="checkbox" <?php if(in_array(0, $value['select_time'])): ?>checked="checked"<?php endif; ?> name="select_time[]" value='0'>星期日</label>
							</li>
                                                        <?php if($status_show): ?><li class="item-content">
								<div class="item-media">审核状态：</div>
								<div class="item-inner">
									<div class="item-input">
										<?php switch($value['trial_status']): case "1": ?><font color="#de9c00">待审核</font><?php break;?>
                                                                                      <?php case "2": ?><font color="#0894ec">审核通过</font><?php break;?>
                                                                                      <?php case "3": ?><font color="#f00">不通过</font><?php break; endswitch;?>
									</div>
								</div>
							</li><?php endif; ?>
                                                        <?php if($value['trial_status'] == 3): ?><li class="item-content" style="">
								<div class="item-media">原因：</div>
								<div class="item-inner">
									<div class="item-input">
										<?php echo ($value['reason']); ?>
									</div>
								</div>
							</li><?php endif; ?>
						</ul>
						<div class="publish_bottom">
                                                    <a href="javascript:void(0);" id="submitbutton" class="create-actions button button-fill">确定</a>
						</div>
                                            </form>
					</div>
				</div>
			</div>
		</div>
		
			
		
		<script type="text/javascript" src="http://g.alicdn.com/sj/lib/jquery/dist/jquery.min.js"></script>
		<script type='text/javascript' src='http://g.alicdn.com/sj/lib/zepto/zepto.min.js' charset='utf-8'></script>
		<script type='text/javascript' src='http://g.alicdn.com/msui/sm/0.6.2/js/sm.min.js' charset='utf-8'></script>
		<script src="http://idangero.us/swiper/dist/js/swiper.min.js"></script>
		<script type="text/javascript" src="/Public/Home/activity/js/huodon.js" ></script>
		<script>
			
			var swiper = new Swiper('.swiper-container', {
				pagination: '.swiper-pagination',
				paginationClickable: true,
				loop:true,    
				grabCursor: true,
				autoplay: 3000
			});
			
			 /* $(document).on('click','.open-preloader', function () {
				 Zepto.showPreloader('加载中...')
				    setTimeout(function () {
				    	 Zepto.hidePreloader();
				    }, 2000); 
			 }); */
			 $(document).on('click','.open-indicator', function () {
				 Zepto.showIndicator();
			     setTimeout(function () {
			    	Zepto.hideIndicator();
			     }, 2000);
			  });
		</script>
		

	</body>

</html>
                <script src="/Public/Admin/plugins/layer/layer.js"></script>
		<script>
			Zepto(function(){
				'use strict';
				Zepto("#time_1").datetimePicker({
    			value: ['2017', '12', '04', '8',"00"],
  				});
  				Zepto("#time_2").datetimePicker({
    			value: ['2017', '12', '04', '9',"00"],
  				});
  				
  				Zepto(".input_map").cityPicker({
				    toolbarTemplate: '<header class="bar bar-nav"><button class="button button-link pull-right close-picker">确定</button>\<h1 class="title">选择活动地点</h1>\</header>'
				});
				
			});
			var swiper = new Swiper('.swiper-container', {
				pagination: '.swiper-pagination',
				paginationClickable: true
			});
			
			jQuery(document).ready(function(){
				$(".yuyue_button li a").on("click",function(){
					$(this).toggleClass("active");
				});
			});
                        
                        $('#submitbutton').click(function(){
                            $.ajax({
                                url:"<?php echo U('Users/user_expert_yuyue');?>",
                                dataType:'json',
                                type:'post',
                                data:$('#submitForm').serialize(),
                                success:function(data){
                                    console.log(data);
                                    if(data.status==1){
                                        Zepto.confirm(data.message, '温馨提示',function(){
                                            window.location.href="<?php echo U('Users/index');?>";
                                        });
                                        return false;
                                    }else if(data.status==2){
                                        Zepto.toast(data.message, 2000, 'success top');
                                        return false;
                                    }else if(data.status==3){
                                        Zepto.confirm(data.message, '温馨提示',function(){
                                            window.location.href="<?php echo U('Apply/expert_join');?>";
                                        });
                                        return false;
//                                        layer.confirm(data.message,{btn:['立即申请','不了'],icon:3,closeBtn:2},function(){
//                                            window.location.href="<?php echo U('Apply/expert_join');?>";
//                                        });
                                    }
                                }
                            });
                        });
		</script>
<script type="text/javascript">
$(document).ready(function(){
    var val = "<?php echo ($value['select_time']); ?>";
//    alert(val);
    $(val).each(function(){
      alert(123)
    });
});
</script>
	</body>

</html>